@import 'style/vars.less';

.tagRow {
  border: 1px solid #eee;
  margin-bottom: 12px;
  border-radius: 4px;

  .tagRowHeader {
    position: relative;
    min-height: 48px;
    border-bottom: 1px solid #eee;
    padding-left: 20px;
  }

  .tagRowTitle {
    font-size: 16px;
    line-height: 42px;
    font-weight: 500;
  }

  .tagRowExtra {
    position: absolute;
    left: 240px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
  }

  .tagRowBody {
    padding: 12px;
  }

  .actionTool {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .actionItem {
    cursor: pointer;
    margin-right: 8px;

    &:hover {
      color: @primary-color;
    }
  }

  .actionItem:nth-last-of-type(1) {
    margin-right: 0px;
  }

  .editTagItem {
    display: inline-block;
    vertical-align: top;
    width: 260px;
    margin-right: 8px;
  }
  .add-tag-btn {
    cursor: pointer;
  }
}


.add-tag-btn {
  border-color: @primary-color;
  color: @primary-color;
  cursor: pointer;
  margin-bottom: 6px;
}
.tag-item {
  word-break: break-all;
  white-space: pre-wrap;
  .tag-ele {
    word-break: break-all;
    white-space: break-spaces;
    margin-bottom: 4px;
    .tag-color();
  }
}